import { Spin } from 'antd'
import React, {Suspense} from 'react'

const LazySuspense: React.FC<{children: React.ReactNode}> = (props) => {
  return (
    <Suspense fallback={<div style={{textAlign: "center"}}><Spin tip="加载中..."/></div>}>
        {props.children}
    </Suspense>
  )
}
export default LazySuspense